//
// Created by cmz2000 on 2021/8/4.
//

#include "main.h"

unsigned short registerNewID(unsigned short old, SOCKADDR_IN temp) {
    if (IDCount > AMOUNT) //循环使用
        IDCount = 0;
    IDTransTable[IDCount].oldID = old;
    IDTransTable[IDCount].client = temp;
    IDCount++;
    return IDCount - 1;
}